import 'package:boss/ui/widget/button/radius_button.dart';
import 'package:boss/ui/widget/shadow_radius_card.dart';
import 'package:hi_common/hi_common.dart';
import 'package:flutter/material.dart';

class FixedBottomBtn extends StatelessWidget {
  final String title;
  final VoidCallback onTap;
  final bool isShowShadow;

  const FixedBottomBtn({
    Key key,
    @required this.title,
    this.onTap,
    this.isShowShadow = true,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 120.w + MediaQuery.of(context).padding.bottom,
      padding: EdgeInsets.only(bottom: MediaQuery.of(context).padding.bottom),
      alignment: Alignment.center,
      decoration: BoxDecoration(
        color: Colors.white,
        boxShadow: isShowShadow ? [DEFAULT_SHADOW] : null,
      ),
      child: RadiusButton(
        title: title,
        onTap: onTap,
        width: 590.w,
      ),
    );
  }
}
